package com.linln.modules.integralmall.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.apache.ibatis.type.JdbcType;

/**
 * @author : pengliang
 * @version V1.0
 * @Project: timo
 * @Package com.linln.modules.points.domain
 * @Descriptio /**
 * @Project: timo
 * @Package com.linln.modules.points.domain
 * @Description: TODO
 * @date Date : 2020年12月11日 16:25
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName(value = "tbl_integral_mall_service")
public class IntegralMallService {
    @TableId(value = "ims_id", type = IdType.UUID)
    //积分商城服务id
    private String imsId;

    //扩张字段
    @TableField("ims_props")
    private String imsProps;

    @TableField("ims_content")
    //详情
    private String imsContent;
    //购买须知
    @TableField("ims_notice")
    private String imsNotice;

    //活动券id
    @TableField("at_id")
    private String atId;


    //活动券名称
    @TableField(value = "service_name", exist = false)
    private String serviceName;
    //活动券类型id
    @TableField(value = "service_type_id", exist = false)
    private String serviceTypeId;
    //活动券类型名称
    @TableField(value = "service_type_name", exist = false)
    private String serviceTypeName;
    //活动券积分
    @TableField(value = "integral", exist = false)
    private Integer integral;
    //活动券金额
    @TableField(value = "money", exist = false)
    private Double money;
    //活动券开始时间
    @TableField(value = "valid_start_date", exist = false)
    private String validStartDate;
    //活动券结束时间
    @TableField(value = "valid_end_date", exist = false)
    private String validEndDate;

    //活动券有效天数
    @TableField(value = "at_valid_day", exist = false)
    private Integer validDay;
    //总数量
    @TableField(value = "at_count", exist = false)
    private Integer count;
    //已用数量
    @TableField(value = "received_count", exist = false)
    private Integer receivedCount;
    //剩余数量
    @TableField(value = "surplus_count", exist = false)
    private Integer surplusCount;

    //规则
    @TableField(value = "use_rule_id", exist = false)
    private String useRuleId;
}
